// components/owner/owner-fans-brand/index.js
import { PACKAGE_OWNER_PAGE } from '../../../constants/route';
const { navTo } = require('../../../common/env');
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        // 粉丝数
        fans: {
            type: Number,
            value: 0,
        },
        // 代言数
        endorsement: {
            type: Number,
            value: 0,
        },
        // 新任务
        newTask: {
            type: Number,
            value: 0,
        },
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        fansAction: function () {
            navTo(PACKAGE_OWNER_PAGE.ownerFans);
        },
        endorsementAction: function () {
            navTo(PACKAGE_OWNER_PAGE.ownerEndorsement);
        },
        newTaskAction: function () {},
    }
})
